﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>网站会员列表</title>
</head>
<body>
    <ext:ResourceManager ID="ResourceManager1" runat="server" />
    <ext:Viewport ID="Viewport1" runat="server" Layout="fit">
        <Items>
            <ext:GridPanel ID="GridPanel1" runat="server" StripeRows="true" TrackMouseOver="true">
                <Store>
                    <ext:Store runat="server">
                        <Proxy>
                            <ext:HttpProxy Url="/BgMgr/MembersMgr/GetAllUsers" />
                        </Proxy>
                        <BaseParams>
                            <ext:Parameter Name="limit" Value="30" Mode="Value" />
                            <ext:Parameter Name="start" Value="0" Mode="Value" />
                        </BaseParams>
                        <Reader>
                            <ext:JsonReader IDProperty="UID" Root="data" TotalProperty="total">
                                <Fields>
                                    <ext:RecordField Name="UID" />
                                    <ext:RecordField Name="NickName" />
                                    <ext:RecordField Name="Sex" />
                                    <ext:RecordField Name="ULevel" Type="Int" />
                                    <ext:RecordField Name="LastLogin" Type="Date" />
                                    <ext:RecordField Name="LastLoginIP" />
                                    <ext:RecordField Name="ConcatLoginCount" Type="Int" />
                                    <ext:RecordField Name="LoginCount" Type="Int" />
                                    <ext:RecordField Name="TtlAmount" Type="Int" />
                                    <ext:RecordField Name="AmountTotle" Type="Int" />
                                    <ext:RecordField Name="Experience" Type="Int" />
                                    <ext:RecordField Name="RegistTime" Type="Date" />
                                    <ext:RecordField Name="State" Type="Int" />
                                </Fields>
                            </ext:JsonReader>
                        </Reader>
                        <SortInfo Field="UID" Direction="ASC" />
                    </ext:Store>
                </Store>
                <LoadMask ShowMask="true" Msg="列表加载中,请稍后..." />
                <ColumnModel runat="server">
                    <Columns>
                        <ext:Column ColumnID="UID" Header="UID" DataIndex="UID" />
                        <ext:Column ColumnID="ULevel" Header="等级" DataIndex="ULevel" />
                        <ext:DateColumn ColumnID="LastLogin" Header="上次登录时间" DataIndex="LastLogin" Format="yyyy-MM-dd hh:mm:ss" />
                        <ext:Column ColumnID="LastLoginIP" Header="上次登录IP" DataIndex="LastLoginIP" />
                        <ext:Column ColumnID="ConcatLoginCount" Header="连续登录次数" DataIndex="ConcatLoginCount" />
                        <ext:Column ColumnID="LoginCount" Header="总登录次数" DataIndex="LoginCount" />
                        <ext:Column ColumnID="TtlAmount" Header="可以现金积分" DataIndex="TtlAmount" />
                        <ext:Column ColumnID="AmountTotle" Header="现金总额" DataIndex="AmountTotle" />
                        <ext:Column ColumnID="Experience" Header="成长值" DataIndex="Experience" />
                        <ext:DateColumn ColumnID="RegistTime" Header="注册时间" DataIndex="RegistTime" Format="yyyy-MM-dd hh:mm:ss" />
                    </Columns>
                </ColumnModel>
                <SelectionModel>
                    <ext:RowSelectionModel runat="server" SingleSelect="true" />
                </SelectionModel>
                <BottomBar>
                    <ext:PagingToolbar runat="server" PageSize="30"  />
                </BottomBar>
            </ext:GridPanel>
        </Items>
    </ext:Viewport>
</body>
</html>
